package com.fenghongzhang.day13;

import android.widget.TextView;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

public class MyAdapter extends BaseQuickAdapter<History, BaseViewHolder> {
    public MyAdapter(int layoutResId, @Nullable List<History> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, History item) {
        TextView view = helper.getView(R.id.rv_tv);
        view.setText(item.getName());
    }
}
